package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BsGemstoneMapper;
import com.ruoyi.system.domain.BsGemstone;
import com.ruoyi.system.service.IBsGemstoneService;

/**
 * 宝石Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-14
 */
@Service
public class BsGemstoneServiceImpl implements IBsGemstoneService 
{
    @Autowired
    private BsGemstoneMapper bsGemstoneMapper;

    /**
     * 查询宝石
     * 
     * @param id 宝石主键
     * @return 宝石
     */
    @Override
    public BsGemstone selectBsGemstoneById(Long id)
    {
        return bsGemstoneMapper.selectBsGemstoneById(id);
    }

    /**
     * 查询宝石列表
     * 
     * @param bsGemstone 宝石
     * @return 宝石
     */
    @Override
    public List<BsGemstone> selectBsGemstoneList(BsGemstone bsGemstone)
    {
        return bsGemstoneMapper.selectBsGemstoneList(bsGemstone);
    }

    /**
     * 新增宝石
     * 
     * @param bsGemstone 宝石
     * @return 结果
     */
    @Override
    public int insertBsGemstone(BsGemstone bsGemstone)
    {
        return bsGemstoneMapper.insertBsGemstone(bsGemstone);
    }

    /**
     * 修改宝石
     * 
     * @param bsGemstone 宝石
     * @return 结果
     */
    @Override
    public int updateBsGemstone(BsGemstone bsGemstone)
    {
        return bsGemstoneMapper.updateBsGemstone(bsGemstone);
    }

    /**
     * 批量删除宝石
     * 
     * @param ids 需要删除的宝石主键
     * @return 结果
     */
    @Override
    public int deleteBsGemstoneByIds(Long[] ids)
    {
        return bsGemstoneMapper.deleteBsGemstoneByIds(ids);
    }

    /**
     * 删除宝石信息
     * 
     * @param id 宝石主键
     * @return 结果
     */
    @Override
    public int deleteBsGemstoneById(Long id)
    {
        return bsGemstoneMapper.deleteBsGemstoneById(id);
    }
}
